package indi.flynn.factorypattern.abstractfactory;

import indi.flynn.factorypattern.Pizza;
import indi.flynn.factorypattern.app.LDCheesePizza;
import indi.flynn.factorypattern.app.LDPepperPizza;

public class LDFactory implements AbstractFactory {

	@Override
	public Pizza CreatePizza(String ordertype) {
		Pizza pizza = null;

		if (ordertype.equals("cheese")) {
			pizza = new LDCheesePizza();
		} else if (ordertype.equals("pepper")) {
			pizza = new LDPepperPizza();
		}
		return pizza;
	}

}
